package com.bear.newsset.entity;

import java.io.Serializable;

public class Response<E extends Serializable> implements Serializable {
    private int status = 400;   //默认：400（请求失败）
    private long timestamp;
    private E data;

    @Override
    public String toString() {
        return "Response{" +
                "status=" + status +
                ", timestamp=" + timestamp +
                ", data=" + data +
                '}';
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public E getData() {
        return data;
    }

    public void setData(E data) {
        this.data = data;
    }
}
